package org.forum.dao.impl;

import java.util.List;

import org.forum.dao.ViceTopicDao;
import org.forum.dao.base.BaseDaoImpl;
import org.forum.domain.ViceTopic;

public class ViceTopicDaoImpl extends BaseDaoImpl<ViceTopic> implements ViceTopicDao {

	@Override
	public List<ViceTopic> getViceTopicByMainTopicId(int mainTopicId,int pageNo_4, int pageSize) {
		String hql = "SELECT en FROM VICETOPIC vice_topic WHERE mainTopicId=" 
				+ mainTopicId + "ORDER BY addTime";
		return findByPage(hql, pageNo_4, pageSize);
	}

	
}
